package collection;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo5 {
    public static void main(String[] args) {
        Collection<String> c= new ArrayList<>();
        //c.add(123);报错，不是String类型
        c.add("123");
    }
}
